#![allow(dead_code)]

use zmath::{Vec2, Mat4};

pub struct Transform {
    pub position: Vec2,
    pub scale: Vec2
}

impl Transform {
    pub fn new(position: Vec2, scale: Vec2) -> Self {
        Self {
            position,
            scale
        }
    }
    pub fn gen_trans_mat(&self) -> Mat4 {
        Mat4::translation(self.position.0, self.position.1, 0.0) * Mat4::new_scale(self.scale.0, self.scale.1, 0.0)
    }
}
